package com.alibaba.algo.core.base;


import com.alibaba.algo.core.resp.BaseResult;

/**
 * 父controller
 */
public class BaseController {

    /**
     * 返回基础数据
     *
     * @param data
     * @return
     */
    public BaseResult getData(Object data) {
        return BaseResult.buildSuccess(data);
    }

    /**
     * 返回成功
     *
     * @return
     */
    public BaseResult success() {
        return BaseResult.buildSuccess();
    }

}